Sizers take care of resizing and repositioning controls within a window whenever
the window is resized. Sizers may be nested within each other to create complex
relationships between the controls in a window.
The most common sizer used will be the
wxStaticBoxSizer
[proc]
add_sizer_to_sizer ( atom sizer1, atom sizer2, atom option, atom flag, atom border )
Category: Sizers
This adds sizer2 to sizer1.
- option can be any integer greater than or equal to 0. For wxBoxSizer, 0 means that
the sizer cannot grow in the main direction of the sizer (either wxHORIZONTAL
or wxVERTICAL--see wxBoxSizer). Greater than 0 means that the sizer will grow
in proportion to the option values of the other controls placed in the sizer.
- flag may take on any of several values (use wx_or_all() to combine multiple):
- wxGROW: grow to fill entire space
- wxSHAPED: grow proportionately
- wxTOP: the border may be applied at the top of the sizer
- wxBOTTOM: the border may be applied at the bottom of the sizer
- wxRIGHT: the border may be applied at the right of the sizer
- wxLEFT: the border may be applied at the left of the sizer
- wxALIGN_CENTER_HORIZONTAL
- wxALIGN_LEFT
- wxALIGN_TOP
- wxALIGN_RIGHT
- wxALIGN_BOTTOM
- wxALIGN_CENTER_VERTICAL
- border is the size of the border
See Also:
add_window_to_sizer,
fit_window,
get_sizer_minsize,
get_sizer_position,
get_sizer_size,
set_sizer,
sizer_calc_min,
space_sizer
[proc]
add_window_to_sizer ( atom sizer, atom window, atom option, atom flag, atom border )
Category: Sizers
This adds the specified window (i.e., control) to the sizer.
- option can be any integer greater than or equal to 0. For wxBoxSizer, 0 means that
the control cannot grow in the main direction of the sizer (either wxHORIZONTAL
or wxVERTICAL--see wxBoxSizer). Greater than 0 means that the control will grow
in proportion to the option values of the other controls placed in the sizer.
- flag may take on any of several values (use wx_or_all() to combine multiple):
- wxGROW: grow to fill entire space
- wxSHAPED: grow proportionately
- wxTOP: the border may be applied at the top of the sizer
- wxBOTTOM: the border may be applied at the bottom of the sizer
- wxRIGHT: the border may be applied at the right of the sizer
- wxLEFT: the border may be applied at the left of the sizer
- wxALIGN_CENTER_HORIZONTAL
- wxALIGN_LEFT
- wxALIGN_TOP
- wxALIGN_RIGHT
- wxALIGN_BOTTOM
- wxALIGN_CENTER_VERTICAL
- border is the size of the border
See Also:
add_sizer_to_sizer,
fit_window,
get_sizer_minsize,
get_sizer_position,
get_sizer_size,
set_sizer,
sizer_calc_min,
space_sizer
Category: Sizers
Tell the sizer to resize the window to match the sizer's minimal size. Returns the new size.
See Also:
add_sizer_to_sizer,
add_window_to_sizer,
get_sizer_minsize,
get_sizer_position,
get_sizer_size,
set_sizer,
sizer_calc_min,
space_sizer
Category: Sizers
Returns the minimal size of the sizer. This is either the combined minimal
size of all the children and their borders or the minimal size set by SetMinSize,
epending on which is bigger
See Also:
add_sizer_to_sizer,
add_window_to_sizer,
fit_window,
get_sizer_position,
get_sizer_size,
set_sizer,
sizer_calc_min,
space_sizer
Category: Sizers
Returns the current position of the sizer.
See Also:
add_sizer_to_sizer,
add_window_to_sizer,
fit_window,
get_sizer_minsize,
get_sizer_size,
set_sizer,
sizer_calc_min,
space_sizer
Category: Sizers
Returns the current size of the sizer.
See Also:
add_sizer_to_sizer,
add_window_to_sizer,
fit_window,
get_sizer_minsize,
get_sizer_position,
set_sizer,
sizer_calc_min,
space_sizer
Category: Sizers
This must be called before a sizer will resize its children. window is the parent window
of the controls to be resized. The sizer will resize and reposition its children based on
window.
See Also:
add_sizer_to_sizer,
add_window_to_sizer,
fit_window,
get_sizer_minsize,
get_sizer_position,
get_sizer_size,
sizer_calc_min,
space_sizer
Category: Sizers
Here, the sizer will do the actual calculation of its children minimal sizes. The
size is returned as a sequence.
See Also:
add_sizer_to_sizer,
add_window_to_sizer,
fit_window,
get_sizer_minsize,
get_sizer_position,
get_sizer_size,
set_sizer,
space_sizer
[proc]
space_sizer ( atom sizer, atom width, atom height, atom option, atom flag, atom border)
Category: Sizers
Adds a blank region to the sizer in order to space controls within a sizer.
- option can be any integer greater than or equal to 0. For wxBoxSizer, 0 means that
the sizer cannot grow in the main direction of the sizer (either wxHORIZONTAL
or wxVERTICAL--see wxBoxSizer). Greater than 0 means that the sizer will grow
in proportion to the option values of the other controls placed in the sizer.
- flag may take on any of several values (use wx_or_all() to combine multiple):
- wxGROW: grow to fill entire space
- wxSHAPED: grow proportionately
- wxTOP: the border may be applied at the top of the sizer
- wxBOTTOM: the border may be applied at the bottom of the sizer
- wxRIGHT: the border may be applied at the right of the sizer
- wxLEFT: the border may be applied at the left of the sizer
- wxALIGN_CENTER_HORIZONTAL
- wxALIGN_LEFT
- wxALIGN_TOP
- wxALIGN_RIGHT
- wxALIGN_BOTTOM
- wxALIGN_CENTER_VERTICAL
- border is the size of the border
See Also:
add_sizer_to_sizer,
add_window_to_sizer,
fit_window,
get_sizer_minsize,
get_sizer_position,
get_sizer_size,
set_sizer,
sizer_calc_min